#ifndef __WIFI_H
#define __WIFI_H
#include "ESP8266WiFi.h"
#include "NTPClient.h"
#include "WiFiUdp.h"
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>
extern uint8_t WIFI_STATE;

#define WIFI_NOT_CONNECT 0
#define WIFI_CONNECTING 1
#define WIFI_CONNECTED 2

extern String wifi_ssid;
extern String wifi_pwd;
extern char weather_key[20];
extern char weather_city[20];
extern uint8_t normal_bright;

void initWiFi(void);
void wifiCheckTask(void);
void smartConfig(void);
void webConfig(void);
void firmwareUpdate(void);

#endif